package edu.nf.supermarket.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yjj
 * @date 2025-05-19
 * 优惠卷类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Coupon {
    /**
     * 优惠卷编号
     */
    private Integer couponId;
    /**
     * 优惠卷名称
     */
    private String couponName;
    /**
     * 优惠卷生效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponStartTime;
    /**
     * 优惠卷失效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponEndTime;
    /**
     * 使用条件金额
     */
    private BigDecimal couponCondition;
    /**
     * 优惠金额
     */
    private BigDecimal couponPrice;
    /**
     * 优惠券状态
     */
    private Byte couponStatus;
}
